//
//  NativeDropboxLoginExtensioniOS.h
//  NativeDropboxLoginExtensioniOS
//
//  Created by Radoslava Leseva on 19/05/2012. diadraw.com, ideadrawapp.com
//  Copyright (c) 2012 DiaDraw. All rights reserved.
//

#import "FlashRuntimeExtensions.h"
#import <Foundation/Foundation.h>


@interface NativeDropboxLoginExtensioniOS : NSObject
{
    NSString *relinkUserId;
}

-(void) performLink;

-(void) performUnlink;

-(void) linkWithDropbox: (NSString *) appKey
              appSecret: (NSString *) appSecret
                   root: (NSString *) root;

FREObject ActionSCriptUnlinkFromDropbox(FREContext ctx, void* funcData, uint32_t argc, FREObject argv[]);
FREObject ActionSCriptLinkWithDropbox(FREContext ctx, void* funcData, uint32_t argc, FREObject argv[]);


void DropboxLoginContextInitializer(void* extData, 
                                      const uint8_t* ctxType, 
                                      FREContext ctx, 
                                      uint32_t* numFunctionsToTest, 
                                      const FRENamedFunction** functionsToSet);

void DropboxLoginContextFinalizer(FREContext ctx);

void DropboxLoginExtensionInitializer(void** extDataToSet, 
                               FREContextInitializer* ctxInitializerToSet, 
                               FREContextFinalizer* ctxFinalizerToSet);

void DropboxLoginExtensionFinalizer(void* extData);

@end
